<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>l8w8jwt: include/l8w8jwt/algs.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">l8w8jwt
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_4cc40c4817b6dd8b994fc53e2126ebc6.html">l8w8jwt</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle"><div class="title">algs.h File Reference</div></div>
</div><!--header-->
<div class="contents">

<p>JWT algorithms as defined in <a href="https://tools.ietf.org/html/rfc7518#section-3.1">https://tools.ietf.org/html/rfc7518#section-3.1</a>.  
<a href="#details">More...</a></p>
<div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="algs_8h__dep__incl.png" border="0" usemap="#ainclude_2l8w8jwt_2algs_8hdep" alt=""/></div>
<map name="ainclude_2l8w8jwt_2algs_8hdep" id="ainclude_2l8w8jwt_2algs_8hdep">
<area shape="rect" title="JWT algorithms as defined in https://tools.ietf.org/html/rfc7518#section&#45;3.1." alt="" coords="109,5,256,32"/>
<area shape="rect" href="decode_8h.html" title="Core DECODE function for l8w8jwt. Use this to decode and validate a JWT!" alt="" coords="5,80,171,107"/>
<area shape="poly" title=" " alt="" coords="156,44,106,82,103,77,152,40"/>
<area shape="rect" href="encode_8h.html" title="Core ENCODE function for l8w8jwt. Use this to encode a JWT header + payload WITHOUT signing." alt="" coords="195,80,360,107"/>
<area shape="poly" title=" " alt="" coords="213,40,263,77,259,82,210,44"/>
</map>
</div>
</div>
<p><a href="algs_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ae1e8b89adcc4cc24833a83bc3b293f94" id="r_ae1e8b89adcc4cc24833a83bc3b293f94"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae1e8b89adcc4cc24833a83bc3b293f94">L8W8JWT_ALG_HS256</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:ae1e8b89adcc4cc24833a83bc3b293f94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83dedb13d03a07f0109eabd757489fdf" id="r_a83dedb13d03a07f0109eabd757489fdf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a83dedb13d03a07f0109eabd757489fdf">L8W8JWT_ALG_HS384</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a83dedb13d03a07f0109eabd757489fdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00f3f3c48dbfda1b3e83de753a5971cd" id="r_a00f3f3c48dbfda1b3e83de753a5971cd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a00f3f3c48dbfda1b3e83de753a5971cd">L8W8JWT_ALG_HS512</a>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a00f3f3c48dbfda1b3e83de753a5971cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa151d71ad8fe46bf036850fe4c5e158" id="r_aaa151d71ad8fe46bf036850fe4c5e158"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aaa151d71ad8fe46bf036850fe4c5e158">L8W8JWT_ALG_RS256</a>&#160;&#160;&#160;3</td></tr>
<tr class="separator:aaa151d71ad8fe46bf036850fe4c5e158"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb7cc0a8ce42154ee71107d1dfcc8a12" id="r_abb7cc0a8ce42154ee71107d1dfcc8a12"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abb7cc0a8ce42154ee71107d1dfcc8a12">L8W8JWT_ALG_RS384</a>&#160;&#160;&#160;4</td></tr>
<tr class="separator:abb7cc0a8ce42154ee71107d1dfcc8a12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae1de362be0a95af43c4691dbc92a0f4" id="r_aae1de362be0a95af43c4691dbc92a0f4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aae1de362be0a95af43c4691dbc92a0f4">L8W8JWT_ALG_RS512</a>&#160;&#160;&#160;5</td></tr>
<tr class="separator:aae1de362be0a95af43c4691dbc92a0f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f06055d92ade5b770cd6a78bca55feb" id="r_a1f06055d92ade5b770cd6a78bca55feb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1f06055d92ade5b770cd6a78bca55feb">L8W8JWT_ALG_PS256</a>&#160;&#160;&#160;6</td></tr>
<tr class="separator:a1f06055d92ade5b770cd6a78bca55feb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a219ab41f91d6f9d0bd7eb35ba60448ad" id="r_a219ab41f91d6f9d0bd7eb35ba60448ad"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a219ab41f91d6f9d0bd7eb35ba60448ad">L8W8JWT_ALG_PS384</a>&#160;&#160;&#160;7</td></tr>
<tr class="separator:a219ab41f91d6f9d0bd7eb35ba60448ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a268503ff419d7259d28c0af617558288" id="r_a268503ff419d7259d28c0af617558288"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a268503ff419d7259d28c0af617558288">L8W8JWT_ALG_PS512</a>&#160;&#160;&#160;8</td></tr>
<tr class="separator:a268503ff419d7259d28c0af617558288"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac98ef208b9dc516256e3343cb41d01db" id="r_ac98ef208b9dc516256e3343cb41d01db"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac98ef208b9dc516256e3343cb41d01db">L8W8JWT_ALG_ES256</a>&#160;&#160;&#160;9</td></tr>
<tr class="separator:ac98ef208b9dc516256e3343cb41d01db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad022a2c9e397371b7f4dec619a6123b6" id="r_ad022a2c9e397371b7f4dec619a6123b6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad022a2c9e397371b7f4dec619a6123b6">L8W8JWT_ALG_ES384</a>&#160;&#160;&#160;10</td></tr>
<tr class="separator:ad022a2c9e397371b7f4dec619a6123b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe660d3536e47a3d7a90fc8640c5a966" id="r_abe660d3536e47a3d7a90fc8640c5a966"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abe660d3536e47a3d7a90fc8640c5a966">L8W8JWT_ALG_ES512</a>&#160;&#160;&#160;11</td></tr>
<tr class="separator:abe660d3536e47a3d7a90fc8640c5a966"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25538ab1b914d911aa773acfee798750" id="r_a25538ab1b914d911aa773acfee798750"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a25538ab1b914d911aa773acfee798750">L8W8JWT_ALG_ES256K</a>&#160;&#160;&#160;12</td></tr>
<tr class="separator:a25538ab1b914d911aa773acfee798750"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6a4541ddd11b4362f599de5304b755d" id="r_aa6a4541ddd11b4362f599de5304b755d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa6a4541ddd11b4362f599de5304b755d">L8W8JWT_ALG_ED25519</a>&#160;&#160;&#160;13</td></tr>
<tr class="separator:aa6a4541ddd11b4362f599de5304b755d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bc80bdaa58997e223756e534fd16a75" id="r_a0bc80bdaa58997e223756e534fd16a75"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0bc80bdaa58997e223756e534fd16a75">L8W8JWT_ENABLE_EDDSA</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:a0bc80bdaa58997e223756e534fd16a75"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>JWT algorithms as defined in <a href="https://tools.ietf.org/html/rfc7518#section-3.1">https://tools.ietf.org/html/rfc7518#section-3.1</a>. </p>
<dl class="section author"><dt>Author</dt><dd>Raphael Beck </dd></dl>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="aa6a4541ddd11b4362f599de5304b755d" name="aa6a4541ddd11b4362f599de5304b755d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6a4541ddd11b4362f599de5304b755d">&#9670;&#160;</a></span>L8W8JWT_ALG_ED25519</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_ED25519&#160;&#160;&#160;13</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>EdDSA over ed25519 + SHA512 signing algorithm. </p>

</div>
</div>
<a id="ac98ef208b9dc516256e3343cb41d01db" name="ac98ef208b9dc516256e3343cb41d01db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac98ef208b9dc516256e3343cb41d01db">&#9670;&#160;</a></span>L8W8JWT_ALG_ES256</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_ES256&#160;&#160;&#160;9</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>ECDSA + P-256 + SHA256 signing algorithm. </p>

</div>
</div>
<a id="a25538ab1b914d911aa773acfee798750" name="a25538ab1b914d911aa773acfee798750"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25538ab1b914d911aa773acfee798750">&#9670;&#160;</a></span>L8W8JWT_ALG_ES256K</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_ES256K&#160;&#160;&#160;12</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>ECDSA over secp256k1 + SHA256 signing algorithm. </p>

</div>
</div>
<a id="ad022a2c9e397371b7f4dec619a6123b6" name="ad022a2c9e397371b7f4dec619a6123b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad022a2c9e397371b7f4dec619a6123b6">&#9670;&#160;</a></span>L8W8JWT_ALG_ES384</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_ES384&#160;&#160;&#160;10</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>ECDSA + P-384 + SHA384 signing algorithm. </p>

</div>
</div>
<a id="abe660d3536e47a3d7a90fc8640c5a966" name="abe660d3536e47a3d7a90fc8640c5a966"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe660d3536e47a3d7a90fc8640c5a966">&#9670;&#160;</a></span>L8W8JWT_ALG_ES512</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_ES512&#160;&#160;&#160;11</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>ECDSA + P-521 + SHA512 signing algorithm. </p>

</div>
</div>
<a id="ae1e8b89adcc4cc24833a83bc3b293f94" name="ae1e8b89adcc4cc24833a83bc3b293f94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1e8b89adcc4cc24833a83bc3b293f94">&#9670;&#160;</a></span>L8W8JWT_ALG_HS256</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_HS256&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>HMAC-SHA256 signing algorithm. </p>

</div>
</div>
<a id="a83dedb13d03a07f0109eabd757489fdf" name="a83dedb13d03a07f0109eabd757489fdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83dedb13d03a07f0109eabd757489fdf">&#9670;&#160;</a></span>L8W8JWT_ALG_HS384</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_HS384&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>HMAC-SHA384 signing algorithm. </p>

</div>
</div>
<a id="a00f3f3c48dbfda1b3e83de753a5971cd" name="a00f3f3c48dbfda1b3e83de753a5971cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00f3f3c48dbfda1b3e83de753a5971cd">&#9670;&#160;</a></span>L8W8JWT_ALG_HS512</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_HS512&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>HMAC-SHA512 signing algorithm. </p>

</div>
</div>
<a id="a1f06055d92ade5b770cd6a78bca55feb" name="a1f06055d92ade5b770cd6a78bca55feb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f06055d92ade5b770cd6a78bca55feb">&#9670;&#160;</a></span>L8W8JWT_ALG_PS256</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_PS256&#160;&#160;&#160;6</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>RSASSA-PSS MGF1 SHA-256 signing algorithm. </p>

</div>
</div>
<a id="a219ab41f91d6f9d0bd7eb35ba60448ad" name="a219ab41f91d6f9d0bd7eb35ba60448ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a219ab41f91d6f9d0bd7eb35ba60448ad">&#9670;&#160;</a></span>L8W8JWT_ALG_PS384</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_PS384&#160;&#160;&#160;7</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>RSASSA-PSS MGF1 SHA-384 signing algorithm. </p>

</div>
</div>
<a id="a268503ff419d7259d28c0af617558288" name="a268503ff419d7259d28c0af617558288"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a268503ff419d7259d28c0af617558288">&#9670;&#160;</a></span>L8W8JWT_ALG_PS512</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_PS512&#160;&#160;&#160;8</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>RSASSA-PSS MGF1 SHA-512 signing algorithm. </p>

</div>
</div>
<a id="aaa151d71ad8fe46bf036850fe4c5e158" name="aaa151d71ad8fe46bf036850fe4c5e158"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa151d71ad8fe46bf036850fe4c5e158">&#9670;&#160;</a></span>L8W8JWT_ALG_RS256</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_RS256&#160;&#160;&#160;3</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>RSASSA-PKCS1-v1_5-SHA256 signing algorithm. </p>

</div>
</div>
<a id="abb7cc0a8ce42154ee71107d1dfcc8a12" name="abb7cc0a8ce42154ee71107d1dfcc8a12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb7cc0a8ce42154ee71107d1dfcc8a12">&#9670;&#160;</a></span>L8W8JWT_ALG_RS384</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_RS384&#160;&#160;&#160;4</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>RSASSA-PKCS1-v1_5-SHA384 signing algorithm. </p>

</div>
</div>
<a id="aae1de362be0a95af43c4691dbc92a0f4" name="aae1de362be0a95af43c4691dbc92a0f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae1de362be0a95af43c4691dbc92a0f4">&#9670;&#160;</a></span>L8W8JWT_ALG_RS512</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ALG_RS512&#160;&#160;&#160;5</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>RSASSA-PKCS1-v1_5-SHA512 signing algorithm. </p>

</div>
</div>
<a id="a0bc80bdaa58997e223756e534fd16a75" name="a0bc80bdaa58997e223756e534fd16a75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bc80bdaa58997e223756e534fd16a75">&#9670;&#160;</a></span>L8W8JWT_ENABLE_EDDSA</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define L8W8JWT_ENABLE_EDDSA&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set this to <code>1</code> if you want to enable the EdDSA signing algorithm </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
